<?php

Yii::import('application.models._base.BaseAuctionResource');


class AuctionResource extends BaseAuctionResource
{
	public static function model($className=__CLASS__) {
		return parent::model($className);
	}
		
	public function relations(){
	    return array(
// 	        'images' =>  array(self::BELONGS_TO,'ResourceImg','','on' => 'ResourceImg.resource_id = images.id'  ),
	        'images' =>  array(self::BELONGS_TO,'ResourceImg','resource_id' ),
	    );
	}
	
}